package com.hf.healthy_life.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hf.healthy_life.pojo.HealthTaskInformation;
import com.hf.healthy_life.vo.CalculateProgressVo;
import com.hf.healthy_life.vo.WeekFinishVo;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface TaskMapper extends BaseMapper<HealthTaskInformation> {
    // 计算当日任务完成进度
    CalculateProgressVo calculateProgress(Long userId);

    int getAchievement(Long userId);

    WeekFinishVo getIfFinish(Long userId);
}
